package com.itheima.test;

import com.itheima.config.SpringConfig;
import com.itheima.dao.BookDao;
import org.junit.Test;
import org.junit.runner.RunWith;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.test.context.ContextConfiguration;
import org.springframework.test.context.junit4.SpringJUnit4ClassRunner;

/**
 * @author ChaunceyZhang
 * @date 2022-10-17 16:13
 * @blog1 https://zephyr-cyber.github.io/
 * @blog2 https://www.yuque.com/gougougou-xwscx
 */

@RunWith(SpringJUnit4ClassRunner.class)
@ContextConfiguration(classes = SpringConfig.class)
public class DemoTest01 {
    @Autowired
    private BookDao bookDao;
    @Test
    public void Test() {
        bookDao.update();

        System.out.println("====================================");

        bookDao.save();
    }
}

